package com.itheima.jdk;

public class QQ2 implements Car{
    @Override
    public void start() {
        System.out.println("------------------华丽的分割线----------------------");
        System.out.println("qq车正在启动~~~");
    }

    @Override
    public void stop() {
        System.out.println("------------------华丽的分割线----------------------");
        System.out.println("qq车正在刹车~~~");
    }

    @Override
    public void drive(String username) {
        System.out.println("------------------华丽的分割线----------------------");
        System.out.println(username+"正在驾驶qq车~~~");
    }

    @Override
    public int oilTank() {
        System.out.println("------------------华丽的分割线----------------------");
        return 50;
    }

    @Override
    //支持链式编程
    public Car didi() {
        System.out.println("------------------华丽的分割线----------------------");
        System.out.println("滴滴");
        return this;
    }
}
